import request from '@/utils/request'

// 查询工序参数列表
export function listProcessParam(query) {
  return request({
    url: '/qep/processParam/list',
    method: 'get',
    params: query
  })
}

// 查询工序参数详细
export function getProcessParam(id) {
  return request({
    url: '/qep/processParam/' + id,
    method: 'get'
  })
}

// 查询某工序下的所有参数
export function getProcessParamsByProcessId(processId) {
  return request({
    url: '/qep/processParam/process/' + processId,
    method: 'get'
  })
}

// 新增工序参数
export function addProcessParam(data) {
  return request({
    url: '/qep/processParam',
    method: 'post',
    data: data
  })
}

// 修改工序参数
export function updateProcessParam(data) {
  return request({
    url: '/qep/processParam',
    method: 'put',
    data: data
  })
}

// 删除工序参数
export function delProcessParam(id) {
  return request({
    url: '/qep/processParam/' + id,
    method: 'delete'
  })
}

// 批量删除工序参数
export function batchDelProcessParam(ids) {
  return request({
    url: '/qep/processParam/batch/' + ids,
    method: 'delete'
  })
} 